import Layout from '@/layout/index.vue'

const business = {
  path: '/business',
  component: Layout,
  redirect: '/order',
  meta: { title: '业务管理', icon: 'business' },
  children: [
    {
      path: '/order',
      name: '',
      component: () => import('@/views/business/order/order.vue'),
      meta: { title: '订单管理' }
    },
    {
      path: '/order-detail',
      name: '',
      component: () => import('@/views/business/order/components/orderDetail/orderDetail.vue'),
      hidden: true,
      meta: { title: '订单详情' }
    },

    {
      path: '/waybill',
      name: '',
      component: () => import('@/views/business/waybill/waybill.vue'),
      meta: { title: '运单管理' }
    },
    {
      path: '/waybill-detail',
      name: '',
      component: () => import('@/views/business/waybill/components/waybillDetail/waybillDetail.vue'),
      hidden: true,
      meta: { title: '运单详情' }
    },
    {
      path: '/cargo',
      name: '',
      component: () => import('@/views/business/cargo/cargo.vue'),
      meta: { title: '货品管理' }
    },
    {
      path: '/goods-type',
      name: '',
      component: () => import('@/views/business/goodsType/goodsType.vue'),
      meta: { title: '货物类型' }
    }
  ]
}
export default business
